package com.adtech.adms.commons.tree;

import java.io.Serializable;
import java.util.List;

import com.adtech.adms.system.datadictionary.DataType;

/**
 * 
 * 
 * @author 李源 
 * @since 2012-7-16 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class DataTypeTreeNode implements TreeNode<DataType> {
	
	private static final long serialVersionUID = -1458593905805368356L;
	
	private Boolean checked;
	private Boolean isParent;
	private List<TreeNode<DataType>> nodes;
	private Boolean open;
	private DataType dataType;
	private TreeNode<DataType> parent;
	
	public DataTypeTreeNode(DataType dataType) {
		this.dataType = dataType;
	}
	
	public Boolean getChecked() {
		return checked;
	}

	public Serializable getId() {
		return dataType.getId();
	}

	public DataType getInnerObject() {
		return dataType;
	}

	public Boolean getIsParent() {
		return isParent;
	}

	public String getName() {
		return dataType.getName();
	}

	public List<TreeNode<DataType>> getNodes() {
		return nodes;
	}

	public Boolean getOpen() {
		return open;
	}

	public TreeNode<DataType> getParent() {
		return parent;
	}

	public String getTarget() {
		return null;
	}

	public String getUrl() {
		return null;
	}

	public boolean isLeaf() {
		return false;
	}

	public void setNodes(List<TreeNode<DataType>> nodes) {
		this.nodes = nodes;
	}

	public void setParent(TreeNode<DataType> parent) {
		this.parent = parent;
	}
	
	public Boolean getHalfChecked() {
		return null;
	}

}
